<!--
    (c) 2007, Stephane Alnet
    
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 3
    of the License, or (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<div <TMPL_VAR NAME="ts_group">_signaling_type="pri">

    <fieldset>
        <legend>Primary Rate Interface (PRI)</legend>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_signalling_pri" <TMPL_VAR NAME="ts_group">_signaling_type="pri">Signaling</label>
            <select name="<TMPL_VAR NAME="ts_group">_signalling_pri" id="<TMPL_VAR NAME="ts_group">_signalling_pri">
                <!-- PRI -->
                <option value="pri_cpe" <TMPL_VAR NAME="ts_group">_signaling_type="pri" is_default="true">PRI User-side (CPE-side)</option>
                <option value="pri_net" <TMPL_VAR NAME="ts_group">_signaling_type="pri">PRI Network-side</option>
            </select>
        </p>
        <p>
            <!-- ISDN PRI (Q.931) -->
            <label for="<TMPL_VAR NAME="ts_group">_switchtype">Switch type</label>
            <select name="<TMPL_VAR NAME="ts_group">_switchtype" id="<TMPL_VAR NAME="ts_group">_switchtype">
                <option value="national">National ISDN 2 (NI-2)</option>
                <option value="dms100">Nortel DMS100</option>
                <option value="4ess">AT&amp;T 4ESS</option>
                <option value="5ess">Lucent 5ESS</option>
                <option value="euroisdn">EuroISDN</option>
                <option value="ni1">Old National ISDN 1 (NI-1)</option>
                <option value="qsig">Q.SIG</option>
            </select>
        </p>
        <p>
            <!-- ISDN -->
            <label for="<TMPL_VAR NAME="ts_group">_nsf">Network Specific Facility (NSF)</label>
            <select name="<TMPL_VAR NAME="ts_group">_nsf" id="<TMPL_VAR NAME="ts_group">_nsf" <TMPL_VAR NAME="ts_group">_signaling_type="pri">
                <option value="none">None</option>
                <option value="sdn">SDN</option>
                <option value="megacom">MEGACOM</option>
                <option value="accunet">AccuNet</option>
            </select>
        </p>
        <p>
            <!-- ISDN -->
            <label   for="<TMPL_VAR NAME="ts_group">_dialplan">Dialplan</label>
            <select name="<TMPL_VAR NAME="ts_group">_dialplan" id="<TMPL_VAR NAME="ts_group">_dialplan">
                <option value="">None</option>
                <option value="unknown"      >Unknown           </option>     
                <option value="private"      >Private ISDN      </option>     
                <option value="local"        >Local ISDN        </option>     
                <option value="national"     >National ISDN     </option>     
                <option value="international">International ISDN</option>     
            </select>
        </p>
        <p>
            <!-- ISDN -->
            <label for="<TMPL_VAR NAME="ts_group">_localdialplan">Local dialplan</label>
            <select name="<TMPL_VAR NAME="ts_group">_localdialplan" id="<TMPL_VAR NAME="ts_group">_localdialplan">
                <option value="">None</option>
                <option value="unknown"      >Unknown           </option>     
                <option value="private"      >Private ISDN      </option>     
                <option value="local"        >Local ISDN        </option>     
                <option value="national"     >National ISDN     </option>     
                <option value="international">International ISDN</option>     
            </select>
        </p>
        <p>
            <!-- ISDN -->
            <label for="<TMPL_VAR NAME="ts_group">_internationalprefix">International Prefix</label>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_nationalprefix">National Prefix</label>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_localprefix">Local Prefix</label>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_privateprefix">Private Prefix</label>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_unknownprefix">Unknown Prefix</label>
        </p>
        <p>
            <!-- PRI reset interval -->
            <label for="<TMPL_VAR NAME="ts_group">_resetinterval_enabled">PRI Reset Interval</label>
            <!-- use "never" for resetinterval if the checkbox is not checked -->
            <input type="checkbox" name="<TMPL_VAR NAME="ts_group">_resetinterval_enabled" id="<TMPL_VAR NAME="ts_group">_resetinterval_enabled" value="yes"  class="trigger" />
            <input type="text" name="<TMPL_VAR NAME="ts_group">_resetinterval_value" id="<TMPL_VAR NAME="ts_group">_resetinterval_value"></input>
        </p>
        <p>
            <!-- PRI -->
            <label for="<TMPL_VAR NAME="ts_group">_overlapdial">Overlap Dialing</label>
            <select name="<TMPL_VAR NAME="ts_group">_overlapdial" id="<TMPL_VAR NAME="ts_group">_overlapdial">
                <option value="no">No</option>
                <option value="yes">Yes</option>
            </select>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_priindication">PRI Indication</label>
            <select name="<TMPL_VAR NAME="ts_group">_priindication" id="<TMPL_VAR NAME="ts_group">_priindication">
                <option value="outofband">Out-of-band</option>
                <option value="inband">In-band</option>
            </select>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_priexclusive">PRI Exclusive</label>
            <select name="<TMPL_VAR NAME="ts_group">_priexclusive" id="<TMPL_VAR NAME="ts_group">_priexclusive">
                <option value="no">No</option>
                <option value="yes">Yes</option>
            </select>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_pritimer_t200_override">Timer T200</label>
            <input type="checkbox"  name="<TMPL_VAR NAME="ts_group">_pritimer_t200_override" id="<TMPL_VAR NAME="ts_group">_pritimer_t200_override" value="true">Override Default</input>
            <input type="text"      name="<TMPL_VAR NAME="ts_group">_pritimer_t200_value" id="<TMPL_VAR NAME="ts_group">_pritimer_t200_value" <TMPL_VAR NAME="ts_group">_pritimer_t200_override="true" default_value="1000"></input>
        </p>
        <p>
            <label for="<TMPL_VAR NAME="ts_group">_pritimer_t313_override">Timer T313</label>
            <input type="checkbox"  name="<TMPL_VAR NAME="ts_group">_pritimer_t313_override" id="<TMPL_VAR NAME="ts_group">_pritimer_t313_override" value="true">Override Default</input>
            <input type="text"      name="<TMPL_VAR NAME="ts_group">_pritimer_t313_value" id="<TMPL_VAR NAME="ts_group">_pritimer_t313_value" <TMPL_VAR NAME="ts_group">_pritimer_t313_override="true" default_value="4000"></input>
        </p>

    </fieldset>
</div> <!-- <TMPL_VAR NAME="ts_group">_signaling_type="pri" -->
